package online.lmds.sdmanage.common.entity;

import java.util.Date;

/**
 * Created by Brighten Ma on 2017/4/26.
 */
public class BaseEntity {
    private Integer id;

    /** 状态  0正常启用，其他待定...默认0 */
    private Integer status;

    /** 记录创建时间 */
    private Date createTime;

    /** 记录上次更新时间 */
    // @JsonInclude(JsonInclude.Include.ALWAYS)
    private Date updateTime;

    /** 删除时间，null表示未删除，非null表示已删除 */
    private Date deleteTime;

    // 可能不是数据库中字段
    //

    // 存放登录用户的 userId
    private Integer userId;

    public BaseEntity() {
        super();
    }

    public BaseEntity(Integer id) {
        super();
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Date getDeleteTime() {
        return deleteTime;
    }

    public void setDeleteTime(Date deleteTime) {
        this.deleteTime = deleteTime;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }
}
